package gui.houseeditor.strategies;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

public class MinimalisticHouseDrawStrategy implements HouseDrawStrategy {

	@Override
	public void drawPorta(Graphics g, int x, int y, int cellSize) {
		g.setColor(new Color(145, 61, 16));
		g.fillRect(x * cellSize, y * cellSize, cellSize, cellSize);
		g.setColor(new Color(0, 0, 0));
	}

	@Override
	public void drawLampadinaAccesa(Graphics g, int x, int y, int cellSize) {
		Image im = Toolkit.getDefaultToolkit().getImage("img//lampadinacolore.png");
		g.drawImage(im, x * cellSize, y * cellSize, cellSize, cellSize, null);
	}

	@Override
	public void drawLampadinaSpenta(Graphics g, int x, int y, int cellSize) {
		Image im = Toolkit.getDefaultToolkit().getImage("img//lampadina3.png");
		g.drawImage(im, x * cellSize, y * cellSize, cellSize, cellSize, null);
	}

	@Override
	public void drawPersona(Graphics g, int x, int y, int cellSize) {
		Image im = Toolkit.getDefaultToolkit().getImage("img//mario.png");
		g.drawImage(im, x * cellSize, y * cellSize, cellSize, cellSize, null);
	}

	@Override
	public void drawWall(Graphics g, int x, int y, int cellSize) {
		 g.fillRect(x*cellSize, y*cellSize, cellSize, cellSize);
	}

	@Override
	public void drawBlank(Graphics g, int x, int y, int cellSize) {
	}

}
